package com.weitu.contractor.entity;

import java.io.Serializable;

/** 
 * 承包商管理_承包商资质审查历史表 HSE_CM_CONTRACTORAUDITHISTORY
 * @author LiMeng
 * date 2017/04/19 17:55
 */
public class ContractorAuditHistory implements Serializable {
    //串行版本ID
    private static final long serialVersionUID = 481455394651555658L;

    // 主键 使用uuid
    private String id;

    // 标识
    private String code;

    // 备注
    private String remarks;

    // 删除标记 0未删除 1 已删除  默认：((0))
    private Integer delState;

    // 添加人
    private String addUserId;

    // 添加人部门Id
    private String addDeptId;

    // 添加时间
    private String addTime;

    // 修改人部门Id
    private String updateDeptId;

    // 最后修改人
    private String updateUserId;

    // 最后修改时间
    private String updateTime;

    // 承包商资质表id
    private String contractorId;

    // 承包商类型id
    private String contractorTypeId;

    // 年度
    private Integer year;

    // 承包商资质开始日期
    private String contractorIntellStartDate;

    // 承包商资质结束日期
    private String contractorIntellEndDate;

    // 负责人id
    private String responsibleId;

    // 主管领导id
    private String supervisorId;

    // 安全负责人id
    private String safeDutierId;

    // 是否总承包（1是，0否）
    private Integer isEpc;

    // 是否建立HSE管理体系（1是,0否）
    private Integer isHseSystem;

    // 审核状态
    private Integer auditState;

    // 是否合格  默认：((1))
    private Integer isQualified;

    //承包商类型名称
    private String contractorTypeName;

    //负责人名称
    private String responsibleName;

    //主管领导名称
    private String supervisorName;

    //安全负责人名称
    private String safeDutierName;

    //添加人名称
    private String addUserName;

    //添加部门名称
    private String addDeptName;

    //承包商名称
    private String contractorName;

    //安全生产许可证
    private SafeProductCert safeProductCert;

    /** 
     * 获取 主键 使用uuid HSE_CM_CONTRACTORAUDITHISTORY.id
     * @return 主键 使用uuid
     */
    public String getId() {
        return id;
    }

    /** 
     * 设置 主键 使用uuid HSE_CM_CONTRACTORAUDITHISTORY.id
     * @param id 主键 使用uuid
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /** 
     * 获取 标识 HSE_CM_CONTRACTORAUDITHISTORY.code
     * @return 标识
     */
    public String getCode() {
        return code;
    }

    /** 
     * 设置 标识 HSE_CM_CONTRACTORAUDITHISTORY.code
     * @param code 标识
     */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /** 
     * 获取 备注 HSE_CM_CONTRACTORAUDITHISTORY.remarks
     * @return 备注
     */
    public String getRemarks() {
        return remarks;
    }

    /** 
     * 设置 备注 HSE_CM_CONTRACTORAUDITHISTORY.remarks
     * @param remarks 备注
     */
    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    /** 
     * 获取 删除标记 0未删除 1 已删除 HSE_CM_CONTRACTORAUDITHISTORY.delState
     * @return 删除标记 0未删除 1 已删除
     */
    public Integer getDelState() {
        return delState;
    }

    /** 
     * 设置 删除标记 0未删除 1 已删除 HSE_CM_CONTRACTORAUDITHISTORY.delState
     * @param delState 删除标记 0未删除 1 已删除
     */
    public void setDelState(Integer delState) {
        this.delState = delState;
    }

    /** 
     * 获取 添加人 HSE_CM_CONTRACTORAUDITHISTORY.addUserId
     * @return 添加人
     */
    public String getAddUserId() {
        return addUserId;
    }

    /** 
     * 设置 添加人 HSE_CM_CONTRACTORAUDITHISTORY.addUserId
     * @param addUserId 添加人
     */
    public void setAddUserId(String addUserId) {
        this.addUserId = addUserId == null ? null : addUserId.trim();
    }

    /** 
     * 获取 添加人部门Id HSE_CM_CONTRACTORAUDITHISTORY.addDeptId
     * @return 添加人部门Id
     */
    public String getAddDeptId() {
        return addDeptId;
    }

    /** 
     * 设置 添加人部门Id HSE_CM_CONTRACTORAUDITHISTORY.addDeptId
     * @param addDeptId 添加人部门Id
     */
    public void setAddDeptId(String addDeptId) {
        this.addDeptId = addDeptId == null ? null : addDeptId.trim();
    }

    /** 
     * 获取 添加时间 HSE_CM_CONTRACTORAUDITHISTORY.addTime
     * @return 添加时间
     */
    public String getAddTime() {
        return addTime;
    }

    /** 
     * 设置 添加时间 HSE_CM_CONTRACTORAUDITHISTORY.addTime
     * @param addTime 添加时间
     */
    public void setAddTime(String addTime) {
        this.addTime = addTime == null ? null : addTime.trim();
    }

    /** 
     * 获取 修改人部门Id HSE_CM_CONTRACTORAUDITHISTORY.updateDeptId
     * @return 修改人部门Id
     */
    public String getUpdateDeptId() {
        return updateDeptId;
    }

    /** 
     * 设置 修改人部门Id HSE_CM_CONTRACTORAUDITHISTORY.updateDeptId
     * @param updateDeptId 修改人部门Id
     */
    public void setUpdateDeptId(String updateDeptId) {
        this.updateDeptId = updateDeptId == null ? null : updateDeptId.trim();
    }

    /** 
     * 获取 最后修改人 HSE_CM_CONTRACTORAUDITHISTORY.updateUserId
     * @return 最后修改人
     */
    public String getUpdateUserId() {
        return updateUserId;
    }

    /** 
     * 设置 最后修改人 HSE_CM_CONTRACTORAUDITHISTORY.updateUserId
     * @param updateUserId 最后修改人
     */
    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId == null ? null : updateUserId.trim();
    }

    /** 
     * 获取 最后修改时间 HSE_CM_CONTRACTORAUDITHISTORY.updateTime
     * @return 最后修改时间
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /** 
     * 设置 最后修改时间 HSE_CM_CONTRACTORAUDITHISTORY.updateTime
     * @param updateTime 最后修改时间
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    /** 
     * 获取 承包商资质表id HSE_CM_CONTRACTORAUDITHISTORY.contractorId
     * @return 承包商资质表id
     */
    public String getContractorId() {
        return contractorId;
    }

    /** 
     * 设置 承包商资质表id HSE_CM_CONTRACTORAUDITHISTORY.contractorId
     * @param contractorId 承包商资质表id
     */
    public void setContractorId(String contractorId) {
        this.contractorId = contractorId == null ? null : contractorId.trim();
    }

    /** 
     * 获取 承包商类型id HSE_CM_CONTRACTORAUDITHISTORY.contractorTypeId
     * @return 承包商类型id
     */
    public String getContractorTypeId() {
        return contractorTypeId;
    }

    /** 
     * 设置 承包商类型id HSE_CM_CONTRACTORAUDITHISTORY.contractorTypeId
     * @param contractorTypeId 承包商类型id
     */
    public void setContractorTypeId(String contractorTypeId) {
        this.contractorTypeId = contractorTypeId == null ? null : contractorTypeId.trim();
    }

    /** 
     * 获取 年度 HSE_CM_CONTRACTORAUDITHISTORY.year
     * @return 年度
     */
    public Integer getYear() {
        return year;
    }

    /** 
     * 设置 年度 HSE_CM_CONTRACTORAUDITHISTORY.year
     * @param year 年度
     */
    public void setYear(Integer year) {
        this.year = year;
    }

    /** 
     * 获取 承包商资质开始日期 HSE_CM_CONTRACTORAUDITHISTORY.contractorIntellStartDate
     * @return 承包商资质开始日期
     */
    public String getContractorIntellStartDate() {
        return contractorIntellStartDate;
    }

    /** 
     * 设置 承包商资质开始日期 HSE_CM_CONTRACTORAUDITHISTORY.contractorIntellStartDate
     * @param contractorIntellStartDate 承包商资质开始日期
     */
    public void setContractorIntellStartDate(String contractorIntellStartDate) {
        this.contractorIntellStartDate = contractorIntellStartDate == null ? null : contractorIntellStartDate.trim();
    }

    /** 
     * 获取 承包商资质结束日期 HSE_CM_CONTRACTORAUDITHISTORY.contractorIntellEndDate
     * @return 承包商资质结束日期
     */
    public String getContractorIntellEndDate() {
        return contractorIntellEndDate;
    }

    /** 
     * 设置 承包商资质结束日期 HSE_CM_CONTRACTORAUDITHISTORY.contractorIntellEndDate
     * @param contractorIntellEndDate 承包商资质结束日期
     */
    public void setContractorIntellEndDate(String contractorIntellEndDate) {
        this.contractorIntellEndDate = contractorIntellEndDate == null ? null : contractorIntellEndDate.trim();
    }

    /** 
     * 获取 负责人id HSE_CM_CONTRACTORAUDITHISTORY.responsibleId
     * @return 负责人id
     */
    public String getResponsibleId() {
        return responsibleId;
    }

    /** 
     * 设置 负责人id HSE_CM_CONTRACTORAUDITHISTORY.responsibleId
     * @param responsibleId 负责人id
     */
    public void setResponsibleId(String responsibleId) {
        this.responsibleId = responsibleId == null ? null : responsibleId.trim();
    }

    /** 
     * 获取 主管领导id HSE_CM_CONTRACTORAUDITHISTORY.supervisorId
     * @return 主管领导id
     */
    public String getSupervisorId() {
        return supervisorId;
    }

    /** 
     * 设置 主管领导id HSE_CM_CONTRACTORAUDITHISTORY.supervisorId
     * @param supervisorId 主管领导id
     */
    public void setSupervisorId(String supervisorId) {
        this.supervisorId = supervisorId == null ? null : supervisorId.trim();
    }

    /** 
     * 获取 安全负责人id HSE_CM_CONTRACTORAUDITHISTORY.safeDutierId
     * @return 安全负责人id
     */
    public String getSafeDutierId() {
        return safeDutierId;
    }

    /** 
     * 设置 安全负责人id HSE_CM_CONTRACTORAUDITHISTORY.safeDutierId
     * @param safeDutierId 安全负责人id
     */
    public void setSafeDutierId(String safeDutierId) {
        this.safeDutierId = safeDutierId == null ? null : safeDutierId.trim();
    }

    /** 
     * 获取 是否总承包（1是，0否） HSE_CM_CONTRACTORAUDITHISTORY.isEpc
     * @return 是否总承包（1是，0否）
     */
    public Integer getIsEpc() {
        return isEpc;
    }

    /** 
     * 设置 是否总承包（1是，0否） HSE_CM_CONTRACTORAUDITHISTORY.isEpc
     * @param isEpc 是否总承包（1是，0否）
     */
    public void setIsEpc(Integer isEpc) {
        this.isEpc = isEpc;
    }

    /** 
     * 获取 是否建立HSE管理体系（1是,0否） HSE_CM_CONTRACTORAUDITHISTORY.isHseSystem
     * @return 是否建立HSE管理体系（1是,0否）
     */
    public Integer getIsHseSystem() {
        return isHseSystem;
    }

    /** 
     * 设置 是否建立HSE管理体系（1是,0否） HSE_CM_CONTRACTORAUDITHISTORY.isHseSystem
     * @param isHseSystem 是否建立HSE管理体系（1是,0否）
     */
    public void setIsHseSystem(Integer isHseSystem) {
        this.isHseSystem = isHseSystem;
    }

    /** 
     * 获取 审核状态 HSE_CM_CONTRACTORAUDITHISTORY.auditState
     * @return 审核状态
     */
    public Integer getAuditState() {
        return auditState;
    }

    /** 
     * 设置 审核状态 HSE_CM_CONTRACTORAUDITHISTORY.auditState
     * @param auditState 审核状态
     */
    public void setAuditState(Integer auditState) {
        this.auditState = auditState;
    }

    /** 
     * 获取 是否合格 HSE_CM_CONTRACTORAUDITHISTORY.isQualified
     * @return 是否合格
     */
    public Integer getIsQualified() {
        return isQualified;
    }

    /** 
     * 设置 是否合格 HSE_CM_CONTRACTORAUDITHISTORY.isQualified
     * @param isQualified 是否合格
     */
    public void setIsQualified(Integer isQualified) {
        this.isQualified = isQualified;
    }

    public String getContractorTypeName() {
        return contractorTypeName;
    }

    public void setContractorTypeName(String contractorTypeName) {
        this.contractorTypeName = contractorTypeName;
    }

    public String getResponsibleName() {
        return responsibleName;
    }

    public void setResponsibleName(String responsibleName) {
        this.responsibleName = responsibleName;
    }

    public String getSupervisorName() {
        return supervisorName;
    }

    public void setSupervisorName(String supervisorName) {
        this.supervisorName = supervisorName;
    }

    public String getSafeDutierName() {
        return safeDutierName;
    }

    public void setSafeDutierName(String safeDutierName) {
        this.safeDutierName = safeDutierName;
    }

    public String getAddUserName() {
        return addUserName;
    }

    public void setAddUserName(String addUserName) {
        this.addUserName = addUserName;
    }

    public String getAddDeptName() {
        return addDeptName;
    }

    public void setAddDeptName(String addDeptName) {
        this.addDeptName = addDeptName;
    }

    public String getContractorName() {
        return contractorName;
    }

    public void setContractorName(String contractorName) {
        this.contractorName = contractorName;
    }

    public SafeProductCert getSafeProductCert() {
        return safeProductCert;
    }

    public void setSafeProductCert(SafeProductCert safeProductCert) {
        this.safeProductCert = safeProductCert;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ContractorAuditHistory{");
        sb.append("id='").append(id).append('\'');
        sb.append(", code='").append(code).append('\'');
        sb.append(", remarks='").append(remarks).append('\'');
        sb.append(", delState=").append(delState);
        sb.append(", addUserId='").append(addUserId).append('\'');
        sb.append(", addDeptId='").append(addDeptId).append('\'');
        sb.append(", addTime='").append(addTime).append('\'');
        sb.append(", updateDeptId='").append(updateDeptId).append('\'');
        sb.append(", updateUserId='").append(updateUserId).append('\'');
        sb.append(", updateTime='").append(updateTime).append('\'');
        sb.append(", contractorId='").append(contractorId).append('\'');
        sb.append(", contractorTypeId='").append(contractorTypeId).append('\'');
        sb.append(", year=").append(year);
        sb.append(", contractorIntellStartDate='").append(contractorIntellStartDate).append('\'');
        sb.append(", contractorIntellEndDate='").append(contractorIntellEndDate).append('\'');
        sb.append(", responsibleId='").append(responsibleId).append('\'');
        sb.append(", supervisorId='").append(supervisorId).append('\'');
        sb.append(", safeDutierId='").append(safeDutierId).append('\'');
        sb.append(", isEpc=").append(isEpc);
        sb.append(", isHseSystem=").append(isHseSystem);
        sb.append(", auditState=").append(auditState);
        sb.append(", isQualified=").append(isQualified);
        sb.append(", contractorTypeName='").append(contractorTypeName).append('\'');
        sb.append(", responsibleName='").append(responsibleName).append('\'');
        sb.append(", supervisorName='").append(supervisorName).append('\'');
        sb.append(", safeDutierName='").append(safeDutierName).append('\'');
        sb.append(", addUserName='").append(addUserName).append('\'');
        sb.append(", addDeptName='").append(addDeptName).append('\'');
        sb.append(", contractorName='").append(contractorName).append('\'');
        sb.append(", safeProductCert=").append(safeProductCert);
        sb.append('}');
        return sb.toString();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ContractorAuditHistory that = (ContractorAuditHistory) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (code != null ? !code.equals(that.code) : that.code != null) return false;
        if (remarks != null ? !remarks.equals(that.remarks) : that.remarks != null) return false;
        if (delState != null ? !delState.equals(that.delState) : that.delState != null) return false;
        if (addUserId != null ? !addUserId.equals(that.addUserId) : that.addUserId != null) return false;
        if (addDeptId != null ? !addDeptId.equals(that.addDeptId) : that.addDeptId != null) return false;
        if (addTime != null ? !addTime.equals(that.addTime) : that.addTime != null) return false;
        if (updateDeptId != null ? !updateDeptId.equals(that.updateDeptId) : that.updateDeptId != null) return false;
        if (updateUserId != null ? !updateUserId.equals(that.updateUserId) : that.updateUserId != null) return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;
        if (contractorId != null ? !contractorId.equals(that.contractorId) : that.contractorId != null) return false;
        if (contractorTypeId != null ? !contractorTypeId.equals(that.contractorTypeId) : that.contractorTypeId != null)
            return false;
        if (year != null ? !year.equals(that.year) : that.year != null) return false;
        if (contractorIntellStartDate != null ? !contractorIntellStartDate.equals(that.contractorIntellStartDate) : that.contractorIntellStartDate != null)
            return false;
        if (contractorIntellEndDate != null ? !contractorIntellEndDate.equals(that.contractorIntellEndDate) : that.contractorIntellEndDate != null)
            return false;
        if (responsibleId != null ? !responsibleId.equals(that.responsibleId) : that.responsibleId != null)
            return false;
        if (supervisorId != null ? !supervisorId.equals(that.supervisorId) : that.supervisorId != null) return false;
        if (safeDutierId != null ? !safeDutierId.equals(that.safeDutierId) : that.safeDutierId != null) return false;
        if (isEpc != null ? !isEpc.equals(that.isEpc) : that.isEpc != null) return false;
        if (isHseSystem != null ? !isHseSystem.equals(that.isHseSystem) : that.isHseSystem != null) return false;
        if (auditState != null ? !auditState.equals(that.auditState) : that.auditState != null) return false;
        if (isQualified != null ? !isQualified.equals(that.isQualified) : that.isQualified != null) return false;
        if (contractorTypeName != null ? !contractorTypeName.equals(that.contractorTypeName) : that.contractorTypeName != null)
            return false;
        if (responsibleName != null ? !responsibleName.equals(that.responsibleName) : that.responsibleName != null)
            return false;
        if (supervisorName != null ? !supervisorName.equals(that.supervisorName) : that.supervisorName != null)
            return false;
        if (safeDutierName != null ? !safeDutierName.equals(that.safeDutierName) : that.safeDutierName != null)
            return false;
        if (addUserName != null ? !addUserName.equals(that.addUserName) : that.addUserName != null) return false;
        if (addDeptName != null ? !addDeptName.equals(that.addDeptName) : that.addDeptName != null) return false;
        if (contractorName != null ? !contractorName.equals(that.contractorName) : that.contractorName != null)
            return false;
        return safeProductCert != null ? safeProductCert.equals(that.safeProductCert) : that.safeProductCert == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (code != null ? code.hashCode() : 0);
        result = 31 * result + (remarks != null ? remarks.hashCode() : 0);
        result = 31 * result + (delState != null ? delState.hashCode() : 0);
        result = 31 * result + (addUserId != null ? addUserId.hashCode() : 0);
        result = 31 * result + (addDeptId != null ? addDeptId.hashCode() : 0);
        result = 31 * result + (addTime != null ? addTime.hashCode() : 0);
        result = 31 * result + (updateDeptId != null ? updateDeptId.hashCode() : 0);
        result = 31 * result + (updateUserId != null ? updateUserId.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (contractorId != null ? contractorId.hashCode() : 0);
        result = 31 * result + (contractorTypeId != null ? contractorTypeId.hashCode() : 0);
        result = 31 * result + (year != null ? year.hashCode() : 0);
        result = 31 * result + (contractorIntellStartDate != null ? contractorIntellStartDate.hashCode() : 0);
        result = 31 * result + (contractorIntellEndDate != null ? contractorIntellEndDate.hashCode() : 0);
        result = 31 * result + (responsibleId != null ? responsibleId.hashCode() : 0);
        result = 31 * result + (supervisorId != null ? supervisorId.hashCode() : 0);
        result = 31 * result + (safeDutierId != null ? safeDutierId.hashCode() : 0);
        result = 31 * result + (isEpc != null ? isEpc.hashCode() : 0);
        result = 31 * result + (isHseSystem != null ? isHseSystem.hashCode() : 0);
        result = 31 * result + (auditState != null ? auditState.hashCode() : 0);
        result = 31 * result + (isQualified != null ? isQualified.hashCode() : 0);
        result = 31 * result + (contractorTypeName != null ? contractorTypeName.hashCode() : 0);
        result = 31 * result + (responsibleName != null ? responsibleName.hashCode() : 0);
        result = 31 * result + (supervisorName != null ? supervisorName.hashCode() : 0);
        result = 31 * result + (safeDutierName != null ? safeDutierName.hashCode() : 0);
        result = 31 * result + (addUserName != null ? addUserName.hashCode() : 0);
        result = 31 * result + (addDeptName != null ? addDeptName.hashCode() : 0);
        result = 31 * result + (contractorName != null ? contractorName.hashCode() : 0);
        result = 31 * result + (safeProductCert != null ? safeProductCert.hashCode() : 0);
        return result;
    }
}